package com.yhsimon.factory.factorymethod.pizzastore.order;

import java.util.Scanner;

public class PizzaStore {
    public static void main(String[] args) {
        String cityFlavor;
        System.out.println("请输入城市口味：");
        Scanner scanner = new Scanner(System.in);
        cityFlavor = scanner.next();
        if (cityFlavor.equals("bj")) {
            //创建北京口味的各种披萨
            new BJOrderPizza();
        }else if (cityFlavor.equals("ld")){
            new LDOrderPizza();
        }else{
            System.exit(0);
        }
    }
}
